//
//  WelfareCollectionViewCell.swift
//  TianTianBiTing
//
//  Created by Gox mac 2 on 2019/2/22.
//  Copyright © 2019 Gox_WallyDiao. All rights reserved.
//

import UIKit

class WelfareCollectionViewCell: UICollectionViewCell {
    var backView:UIImageView = {
        let view = UIImageView.init()
        view.layer.masksToBounds = true
        view.layer.cornerRadius = 7.5
        return view
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setUI()
    }
    
    func setUI() {
        self.contentView.addSubview(self.backView)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
        
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
        self.backView.frame = FRAME_CGFloat(0, 0,contentView.frame.width, contentView.frame.height)
    }
}
